/**   
 * @Title: TreeNode.java
 * @Package com.starbaba.core.web.tree
 * @Description: TODO
 * @author Yi Xiaoping 
 * @date Jul 29, 2014 9:47:07 AM
 * @version V1.0   
*/

package com.starbaba.core.web.tree;

/**
 * <b>Title: TreeNode.java</b>
 * <b>Description: 用于构建jtree JSON对象</b>
 * <b>Copyright: Copyright (c) Revenco </b>
 * <b>Company: Sunrise Tech Ltd.</b>
 * @author Yi Xiaoping
 * @date Jul 29, 2014 9:47:07 AM
 * @version V1.0
 * @split :=====================================================
 * @modify : Administrator 
 * @since :Jul 29, 2014 9:47:07 AM
 *
 */

public class TreeNode {
	private String id;
	private String pId;
	private String name;
	private boolean checked;
	private boolean open;
	private boolean isParent;
	
	private String type;
    private java.lang.String communityid;
    private java.lang.String areaid;
    private java.lang.String buildingid;
    private java.lang.String unitid;

	/**
	 * @return id
	 */
	
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return pId
	 */
	
	public String getPId() {
		return pId;
	}
	/**
	 * @param id the pId to set
	 */
	public void setPId(String id) {
		pId = id;
	}
	/**
	 * @return name
	 */
	
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return checked
	 */
	
	public boolean isChecked() {
		return checked;
	}
	/**
	 * @param checked the checked to set
	 */
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	/**
	 * @return open
	 */
	
	public boolean isOpen() {
		return open;
	}
	/**
	 * @param open the open to set
	 */
	public void setOpen(boolean open) {
		this.open = open;
	}
	/**
	 * @return isParent
	 */
	
	public boolean isParent() {
		return isParent;
	}
	/**
	 * @param isParent the isParent to set
	 */
	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	} 
    
	public java.lang.String getCommunityid() {
		return communityid;
	}
	public void setCommunityid(java.lang.String communityid) {
		this.communityid = communityid;
	}
	public java.lang.String getAreaid() {
		return areaid;
	}
	public void setAreaid(java.lang.String areaid) {
		this.areaid = areaid;
	}
	public java.lang.String getBuildingid() {
		return buildingid;
	}
	public void setBuildingid(java.lang.String buildingid) {
		this.buildingid = buildingid;
	}
	public java.lang.String getUnitid() {
		return unitid;
	}
	public void setUnitid(java.lang.String unitid) {
		this.unitid = unitid;
	}
}
